<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function startTime(time){
            let p=new Promise(function(resolve,reject){
                setTimeout(resolve,time);
            });
            return p;
        }
        startTime(2000)
        .then(function(){
            console.log(111);
            return startTime(2000);
        })
        .then(function(){
            console.log(222);
            return startTime(2000);
        })
        .then(function(){
            console.log(333);
            return startTime(2000);
        })
        .then(function(){
            console.log(444);
        });
    </script>
</head>
<body>
    
</body>
</html>